package frame.options.sdn.create;

import com.nexes.wizard.WizardPanelDescriptor;

public class CreateSdnFinishDescriptor extends WizardPanelDescriptor
{
	public static final String IDENTIFIER = CreateSdnFinishDescriptor.class.getSimpleName();
	
	private CreateSdnFinishPanel createSdnFinishPanel;
	public CreateSdnFinishPanel getCreateSdnFinishPanel(){ return createSdnFinishPanel; }
	public void setCreateSdnFinishPanel( CreateSdnFinishPanel createSdnFinishPanel ){ this.createSdnFinishPanel = createSdnFinishPanel; }
	
	public CreateSdnFinishDescriptor()
    {
		this.setCreateSdnFinishPanel( new CreateSdnFinishPanel() );
		
		this.setPanelDescriptorIdentifier( CreateSdnFinishDescriptor.IDENTIFIER );
    	this.setPanelComponent( this.getCreateSdnFinishPanel() );
    }
    
    @Override
	public Object getBackPanelDescriptor()
    {
    	return CreateSdnSelectDescriptor.IDENTIFIER;
    }
    
    @Override
	public Object getNextPanelDescriptor()
    {
    	return FINISH;
    }
    
    @Override
	public void aboutToDisplayPanel()
    {
    	this.getWizard().setNextFinishButtonEnabled( true );
    }
    
	public void aboutToHidePanel(){ }
    
}